package com.neusoft.di.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.server.ServerWebExchange;

@RestController
@RequestMapping("/ma")
public class MethodArgumentsController {

    @RequestMapping("t1")
    public void testServerWebExchange(ServerWebExchange exchange) {
        System.out.println("testServerWebExchange");
        System.out.println(exchange);
        System.out.println(exchange.getRequest());
        System.out.println(exchange.getResponse());
        System.out.println(exchange.getRequest().getHeaders());
        System.out.println(exchange.getRequest().getQueryParams());
    }

}
